package com.project.controller.back;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.common.result.R;
import com.project.entity.SchoolData;
import com.project.service.SchoolDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 */
@RestController
@RequestMapping("/back/user")
public class UserController {

    @Autowired
    private SchoolDataService schoolDataService;

    @GetMapping("/schoolData/list")
    public R<Page<SchoolData>> schoolDataList(){
        Page<SchoolData> page = schoolDataService.page(new Page<>(1, 5));
        return R.success(page);
    }

}

